<?php
namespace api\web\controller;
use api\web\model\BannerModel;
use cmf\controller\RestBaseController;

class BannerController extends RestBaseController{
    public function index(){
        $banner=BannerModel::select();
        $this->success('banner图',$banner);
    }
}